<template>
  <div class="announcement-container">
    <div class="content-wrapper">
      <div class="left">
        <div class="title">
          <h4>通知</h4>
          <div>NOTICE</div>
        </div>
        <div class="content">
          <Notice />
        </div>
      </div>

      <div class="right">
        <div class="title">
          <h4>查询</h4>
          <div>QUERY</div>
        </div>
        <div class="content">
          <Search />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Notice from "./Notice.vue";
import Search from "./Search.vue";
</script>

<style scoped lang="scss">
@import "@/css/respondMixin";
@import "@/css/variable";

$contentwidth: 1280px;

.announcement-container {
  margin-top: 20px;
  background-color: #fff;

  @include respond-to("phone") {
    margin-top: 10px;
    padding: 0 $contentBothPadding;
  }
}

.content-wrapper {
  width: $contentwidth;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;

  @include respond-to("phone") {
    width: 100%;
    margin: 0;
    flex-direction: column-reverse;
    .left {
      margin-top: 10px;
      margin-right: 0 !important;
    }
  }

  .left {
    flex: 2 0 0;
    margin-right: 20px;
  }
  .right {
    flex: 1 0 0;
  }

  .left,
  .right {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .title {
    text-align: center;
    > h4 {
      font-size: 24px;
      height: 40px;
      line-height: 40px;
    }
    @include respond-to("phone") {
      display: none;
    }
  }

  .content {
    height: 400px;

    @include respond-to("phone") {
      height: auto;
    }
  }
}
</style>
